package website.haicheng.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import website.haicheng.core.base.BaseEntity;

import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 582895699@qq.com
 * @since 2021-02-09
 */
@Getter
@Setter
@ApiModel(value = "Task对象", description = "")
public class Task extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "任务名")
    private String jobName;

    @ApiModelProperty(value = "任务描述")
    private String description;

    @ApiModelProperty(value = "cron表达式")
    private String cronExpression;

    @ApiModelProperty(value = "任务执行时调用哪个类的方法 包名+类名")
    private String beanClass;

    @ApiModelProperty(value = "任务状态;0:运行；1：状态；2：暂停")
    private Integer jobStatus;

    @ApiModelProperty(value = "任务分组")
    private String jobGroup;

    @ApiModelProperty(value = "创建者")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    private String updateUser;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


}
